{include file="general/header.tpl"}
{include file="shorten/shorten_path.tpl"}
{capture name="tiny_url"}{get_scheme()}://{#RewriteHost#}/{$shorten_url[0]}{/capture}
<div id="main">
	{include file="shorten/shorten_validate.tpl"}
	<div class="success">
		A new tiny URL has been generated with the keyword {$shorten_url[0]}.<br />
		Click on this button to copy this new short URL:&nbsp;<script type="text/javascript">createCopyButton('{$smarty.capture.tiny_url}');</script><br />
		You can use the following bookmarklet to make tiny further long URLs that will be associated to the email address you used to shorten this one.<br />
		Drag to browser toolbar: <a href="javascript:if(confirm('Are you sure you want to create a tiny URL for this page?\n\n' + location.href)){ldelim}var d=document,w=window,f='{get_scheme()}://{#WWWHost#}/api.php',l=d.location,e=encodeURIComponent,p='?action=shorten&amp;email='+e('{$shorten_url[1]}')+'&amp;link='+e(l.href)+'&amp;title='+e(d.title),u=f+p;a=function(){ldelim}if(!w.open(u,'t','width=600,height=300,directories=no,location=no,menubar=no,resizable=yes,scrollbars=no,status=no,toolbar=no,dependent=yes'))l.href=u;{rdelim};if(/Firefox/.test(navigator.userAgent)){ldelim}setTimeout('a()',0);{rdelim}else{ldelim}a();{rdelim}{rdelim}void(0);" onclick="alert('Drag to browser toolbar or add to favorites'); return false;">{#RewriteHost#}!</a><br />
	</div>
	{include file="shorten/shorten_form.tpl"}
</div>
{include file="general/left.tpl"}
{include file="general/footer.tpl"}